using System;
namespace ActionSystem.Core
{
    /// <summary>
    /// ActionSortAttribute：用来定义Action的排序
    /// </summary>
    [AttributeUsage(AttributeTargets.Class, AllowMultiple = false, Inherited = false)]
    public class ActionSortAttribute : Attribute
    {
        public const int DEFAULT_VALUE = 0;
        public int value { get; protected set; }
        /// <summary>
        /// 指定handler
        /// </summary>
        /// <param name="value">当前Action对应的排序值</param>
        public ActionSortAttribute(int value= DEFAULT_VALUE)
        {
            this.value = value;
        }
    }
}